package by.averianov.discounta.dataaccess;

import java.util.List;

import javax.persistence.metamodel.SingularAttribute;

import by.averianov.discounta.datamodel.Card;

public interface CardDao extends AbstractDao<Long, Card> {
	
	Card getCardByUser(Long userId);

	List<Card> getAllCard(SingularAttribute<Card, ?> attr, boolean ascending, int startRecord, int pageSize);
	
	List<Card> getAllCardByUser(Long id);
	
	List<Card> getAllCardByUser(SingularAttribute<Card, ?> attr, boolean ascending, int startRecord, int pageSize, Long id);

}
